import request from '@/utils/request'

// 查询结算管理分页
export function getBsPaymentPage(query) {
  return request({
    url: '/bsPayment/getPage',
    method: 'get',
    params: query
  })
}

// 查询结算管理列表
export function getBsPaymentList(query) {
  return request({
    url: '/bsPayment/getList',
    method: 'get',
    params: query
  })
}

// 通过主键查询结算管理详细
export function getBsPaymentById(query) {
  return request({
    url: '/bsPayment/getById',
    method: 'get',
    params: query
  })
}

// 新增或修改结算管理信息
export function addOrUpdateBsPayment(data) {
  return request({
    url: '/bsPayment/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 批量修改结算管理信息
export function updateBatch(data) {
    return request({
        url: '/bsPayment/updateBatch',
        method: 'post',
        data: data
    })
}

// 删除结算管理记录
export function delBsPayment(ids) {
  return request({
    url: '/bsPayment/deleteByIds/'+ids,
    method: 'delete',
  })
}

// 导出结算管理数据
export function exportBsPayment(query) {
  return request({
    url: '/bsPayment/export',
    method: 'get',
    params: query
  })
}
